// ---------初始化样式-----------
@import "./normalize.scss";

// 图标
@import url("//at.alicdn.com/t/font_3241280_0op09qh58k9.css");

// 自定义滚动条

*::-webkit-scrollbar {
  width: 6px;
  top: 2px;
}
*::-webkit-scrollbar-track {
  width: 6px;
  height: 6px;
  background: rgb(239, 239, 239);
  border-radius: 2px;
}
*::-webkit-scrollbar-thumb {
  cursor: pointer;
  border-radius: 6px;
  background-color: rgba(144, 147, 153, 0.3);
  transition: 0.3s background-color;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(144, 147, 153, 0.5);
}

// 过度
.fade-leave-active,
.fade-enter-active {
  transition: all 1s;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

// ----侧边栏 ----
.side-bar {
  min-width: 65px;
  overflow: hidden;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  transition: width 0.3s;

  .el-menu {
    border: none !important;
    box-sizing: border-box;
  }
  .el-menu > div {
    border: none !important;
  }

  .el-sub-menu .el-menu-item {
    border: none !important;
    box-sizing: border-box;
    color: #ccc;
    overflow: hidden;
    padding-right: 20px !important;
  }
  // 菜单背景色
  .el-menu-item,
  .el-sub-menu__title,
  .menus {
    overflow: hidden;
  }

  .el-menu-item a {
    display: inline-block;
    width: 100%;
    text-overflow: ellipsis;
    overflow-x: hidden;
    text-decoration: none;
    color: #222;
  }
}

@import "./element.scss";
